package cn.edu.scau.cmi.luochenghao.chapter06;

class A_6 {
	double f(double x,double y) {
		return x+y;
	}
}

class B_6 extends A_6 {
	double f(int x,int y) {
		return x*y;
	}
}

public class E_6 {

	public static void main(String[] args) {
		B_6 b=new B_6();
		System.out.println(b.f(3,5));
		System.out.println(b.f(3.0,5.0));
	}

}
